<?php
class StoreModel extends Model {
	// 自动验证设置
	protected $_validate	 =	 array(
		array('store_id','require','生成店铺id失败！'),
		array('store_type','require','店铺类型必须！'),
		array('store_address','require','店铺地址必须！'),
		array('store_mid','require','店铺所属id取得失败！'),
		array('store_name','require','门店名称必须！'),
		array('store_category','require','店铺经营类别必须！'),
		array('store_id','','店铺id重复',0,'unique',self::MODEL_INSERT),
		);
	// 自动填充设置
	protected $_auto	 =	 array(
		array('store_static','0',self::MODEL_INSERT),
		);

}
?>